using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class damageable : MonoBehaviour
{
    void OnTriggerStay2D(Collider2D other)
    {
        moveControll pc = other.GetComponent<moveControll>();
        if (pc != null)
        {
            
            Debug.Log("玩家走到地刺上扣血");
            pc.wudi();         
            Debug.Log("玩家当前血量/最大血量：" + pc.CurrentHealth + "/" + pc.MaxHealth);
            
        }
    }
}
